package com.youhome.service.impl;


import com.youhome.mapper.ListHubPhotoMapper;
import com.youhome.model.ListHubPhoto;
import com.youhome.service.ListHubPhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chen365 on 2018/05/09.
 */
@Service
public class ListHubPhotoServiceImpl implements ListHubPhotoService {

    @Autowired
    private ListHubPhotoMapper listHubPhotoMapper;

    @Override
    public List<ListHubPhoto> selectByBean(ListHubPhoto record) {
        return listHubPhotoMapper.selectByBean(record);
    }

    @Override
    public int insertBatch(List<ListHubPhoto> list) {
        return listHubPhotoMapper.insertBatch(list);
    }

    @Override
    public int deletePhotoByBean(ListHubPhoto record) {
        return listHubPhotoMapper.deleteByBean(record);
    }
}
